In my other 'INIT', I used DetachResource() for handles. If I use the
combination of GetDriverMemoryFragment() and InstallDriverFromFragment(), do I
need to use a routine call to disassociate the first Ptr argument in
GetDriverMemoryFragment() from the 'INIT', and if so, what routine should I
call?
A Although GetDriverDiskFragment was created for family experts, use this call
for 'ndrv' drivers, if you want to. GetDriverDiskFragment does not put the same
properties in the device tree as 'ndrv' drivers do, because it was not designed
to be used with 'ndrv' drivers. After you have your properties in the
NameRegistry by using GetDriverDiskFragment, you can add additional ones. See
Designing PCI Cards & Drivers for Power Macintosh Computers, in the
chapter on NameRegistry, for more information.
When you make a call to GetDriverMemoryFragment in your INIT, and you have a
pointer that you created in your code, you are responsible for disposing of
that pointer, just like any other pointer you create. To free up the storage
you created, make a call to DisposePtr.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help